home *** CD-ROM | disk | FTP | other *** search
open in:
MacOS 8.1
|
Win98
|
DOS
browse contents |
view JSON data
|
view as text
This file was processed as: Mailbox/MIME Entity
(archive/mbox).
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| dexvert
| Newsgroup Content (archive/news)
| magic
| Supported |
100%
| dexvert
| Mailbox/MIME Entity (archive/mbox)
| magic
| Supported |
100%
| dexvert
| Internet Message Format (text/imf)
| magic
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| news, ASCII text
| default
| |
100%
| checkBytes
| Printable ASCII
| default
| |
100%
| dexmagic
| PrintFox/Pagefox WEAK
| default
| |
100%
| perlTextCheck
| Likely Text (Perl)
| default
| |
100%
| siegfried
| fmt/950 MIME Email (1.0)
| default
| |
100%
| detectItEasy
| Format: plain text[LF]
| default (weak)
| |
100%
| xdgMime
| message/news
| default
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 50 61 74 68 3a 20 72 65 | 64 2e 77 65 65 67 2e 75 |Path: re|d.weeg.u|
|00000010| 69 6f 77 61 2e 65 64 75 | 21 72 6f 62 69 6e 73 6f |iowa.edu|!robinso|
|00000020| 6e 0a 46 72 6f 6d 3a 20 | 54 68 65 20 41 6d 6f 72 |n.From: |The Amor|
|00000030| 70 68 6f 75 73 20 4d 61 | 73 73 20 3c 72 6f 62 69 |phous Ma|ss <robi|
|00000040| 6e 73 6f 6e 40 62 6c 75 | 65 2e 77 65 65 67 2e 75 |nson@blu|e.weeg.u|
|00000050| 69 6f 77 61 2e 65 64 75 | 3e 0a 4e 65 77 73 67 72 |iowa.edu|>.Newsgr|
|00000060| 6f 75 70 73 3a 20 63 6f | 6d 70 2e 6c 61 6e 67 2e |oups: co|mp.lang.|
|00000070| 63 0a 53 75 62 6a 65 63 | 74 3a 20 52 65 3a 20 52 |c.Subjec|t: Re: R|
|00000080| 61 6e 64 28 29 20 46 75 | 6e 63 74 69 6f 6e 0a 44 |and() Fu|nction.D|
|00000090| 61 74 65 3a 20 46 72 69 | 2c 20 32 32 20 4d 61 72 |ate: Fri|, 22 Mar|
|000000a0| 20 31 39 39 36 20 31 34 | 3a 30 32 3a 33 39 20 2d | 1996 14|:02:39 -|
|000000b0| 30 36 30 30 0a 4f 72 67 | 61 6e 69 7a 61 74 69 6f |0600.Org|anizatio|
|000000c0| 6e 3a 20 55 6e 69 76 65 | 72 73 69 74 79 20 6f 66 |n: Unive|rsity of|
|000000d0| 20 49 6f 77 61 2c 20 49 | 6f 77 61 20 43 69 74 79 | Iowa, I|owa City|
|000000e0| 2c 20 49 41 2c 20 55 53 | 41 0a 44 69 73 74 72 69 |, IA, US|A.Distri|
|000000f0| 62 75 74 69 6f 6e 3a 20 | 77 6f 72 6c 64 0a 4d 65 |bution: |world.Me|
|00000100| 73 73 61 67 65 2d 49 44 | 3a 20 3c 50 69 6e 65 2e |ssage-ID|: <Pine.|
|00000110| 41 33 32 2e 33 2e 39 31 | 2e 39 36 30 33 32 32 31 |A32.3.91|.9603221|
|00000120| 33 35 39 31 33 2e 32 33 | 33 34 37 44 2d 31 30 30 |35913.23|347D-100|
|00000130| 30 30 30 40 72 65 64 2e | 77 65 65 67 2e 75 69 6f |000@red.|weeg.uio|
|00000140| 77 61 2e 65 64 75 3e 0a | 52 65 66 65 72 65 6e 63 |wa.edu>.|Referenc|
|00000150| 65 73 3a 20 3c 34 69 71 | 6c 74 6a 24 34 30 67 40 |es: <4iq|ltj$40g@|
|00000160| 6e 65 77 73 31 2e 73 79 | 6d 70 61 74 69 63 6f 2e |news1.sy|mpatico.|
|00000170| 63 61 3e 0a 4e 4e 54 50 | 2d 50 6f 73 74 69 6e 67 |ca>.NNTP|-Posting|
|00000180| 2d 48 6f 73 74 3a 20 72 | 65 64 2e 77 65 65 67 2e |-Host: r|ed.weeg.|
|00000190| 75 69 6f 77 61 2e 65 64 | 75 0a 4d 69 6d 65 2d 56 |uiowa.ed|u.Mime-V|
|000001a0| 65 72 73 69 6f 6e 3a 20 | 31 2e 30 0a 43 6f 6e 74 |ersion: |1.0.Cont|
|000001b0| 65 6e 74 2d 54 79 70 65 | 3a 20 54 45 58 54 2f 50 |ent-Type|: TEXT/P|
|000001c0| 4c 41 49 4e 3b 20 63 68 | 61 72 73 65 74 3d 55 53 |LAIN; ch|arset=US|
|000001d0| 2d 41 53 43 49 49 0a 58 | 2d 53 65 6e 64 65 72 3a |-ASCII.X|-Sender:|
|000001e0| 20 72 6f 62 69 6e 73 6f | 6e 40 72 65 64 2e 77 65 | robinso|n@red.we|
|000001f0| 65 67 2e 75 69 6f 77 61 | 2e 65 64 75 0a 49 6e 2d |eg.uiowa|.edu.In-|
|00000200| 52 65 70 6c 79 2d 54 6f | 3a 20 3c 34 69 71 6c 74 |Reply-To|: <4iqlt|
|00000210| 6a 24 34 30 67 40 6e 65 | 77 73 31 2e 73 79 6d 70 |j$40g@ne|ws1.symp|
|00000220| 61 74 69 63 6f 2e 63 61 | 3e 20 0a 0a 4f 6e 20 32 |atico.ca|> ..On 2|
|00000230| 31 20 4d 61 72 20 31 39 | 39 36 2c 20 47 69 73 65 |1 Mar 19|96, Gise|
|00000240| 6c 65 20 53 77 69 6e 73 | 6f 6e 20 77 72 6f 74 65 |le Swins|on wrote|
|00000250| 3a 0a 0a 3e 20 48 6f 77 | 20 64 6f 20 49 20 67 65 |:..> How| do I ge|
|00000260| 74 20 61 20 72 61 6e 64 | 6f 6d 20 6e 75 6d 62 65 |t a rand|om numbe|
|00000270| 72 20 66 72 6f 6d 20 61 | 20 22 53 45 54 22 20 6f |r from a| "SET" o|
|00000280| 66 20 6e 75 6d 62 65 72 | 73 2e 0a 3e 20 0a 3e 20 |f number|s..> .> |
|00000290| 65 2e 67 2e 0a 3e 20 0a | 3e 20 20 20 20 20 20 20 |e.g..> .|> |
|000002a0| 49 20 77 61 6e 74 20 61 | 20 72 61 6e 64 6f 6d 20 |I want a| random |
|000002b0| 6e 75 6d 62 65 72 20 66 | 72 6f 6d 20 74 68 69 73 |number f|rom this|
|000002c0| 20 73 65 74 3a 0a 3e 20 | 0a 3e 20 20 20 20 20 20 | set:.> |.> |
|000002d0| 20 32 2c 20 34 2c 20 36 | 2c 20 38 2c 20 31 30 0a | 2, 4, 6|, 8, 10.|
|000002e0| 3e 20 0a 3e 20 49 74 20 | 73 65 65 6d 73 20 73 6f |> .> It |seems so|
|000002f0| 20 73 69 6d 70 6c 65 20 | 62 75 74 20 49 20 63 61 | simple |but I ca|
|00000300| 6e 27 74 20 66 69 6e 64 | 20 61 6e 79 74 68 69 6e |n't find| anythin|
|00000310| 67 20 69 6e 20 6d 79 20 | 74 65 78 74 20 68 6f 77 |g in my |text how|
|00000320| 20 74 6f 20 64 6f 20 74 | 68 69 73 2e 0a 0a 20 20 | to do t|his... |
|00000330| 47 65 6e 65 72 61 74 65 | 20 61 20 72 61 6e 64 6f |Generate| a rando|
|00000340| 6d 20 6e 75 6d 62 65 72 | 20 66 72 6f 6d 20 31 20 |m number| from 1 |
|00000350| 74 6f 20 35 20 61 6e 64 | 20 6d 75 6c 74 69 70 6c |to 5 and| multipl|
|00000360| 79 20 69 74 20 62 79 20 | 74 77 6f 2e 20 54 68 65 |y it by |two. The|
|00000370| 20 6d 6f 73 74 20 0a 73 | 74 72 61 69 67 68 74 66 | most .s|traightf|
|00000380| 6f 72 77 61 72 64 20 69 | 6d 70 6c 65 6d 65 6e 74 |orward i|mplement|
|00000390| 61 74 69 6f 6e 20 77 6f | 75 6c 64 20 62 65 0a 0a |ation wo|uld be..|
|000003a0| 20 20 23 69 6e 63 6c 75 | 64 65 20 3c 73 74 64 6c | #inclu|de <stdl|
|000003b0| 69 62 2e 68 3e 0a 20 20 | 23 69 6e 63 6c 75 64 65 |ib.h>. |#include|
|000003c0| 20 3c 74 69 6d 65 2e 68 | 3e 0a 0a 20 20 69 6e 74 | <time.h|>.. int|
|000003d0| 20 78 3b 0a 20 20 73 72 | 61 6e 64 28 74 69 6d 65 | x;. sr|and(time|
|000003e0| 28 4e 55 4c 4c 29 29 3b | 20 2f 2a 20 6f 6e 6c 79 |(NULL));| /* only|
|000003f0| 20 63 61 6c 6c 20 73 72 | 61 6e 64 28 29 20 4f 4e | call sr|and() ON|
|00000400| 43 45 20 2a 2f 0a 20 20 | 78 20 3d 20 28 72 61 6e |CE */. |x = (ran|
|00000410| 64 28 29 20 25 20 35 20 | 2b 20 31 29 20 2a 20 32 |d() % 5 |+ 1) * 2|
|00000420| 3b 20 2f 2a 20 77 68 65 | 6e 65 76 65 72 20 79 6f |; /* whe|never yo|
|00000430| 75 20 6e 65 65 64 20 61 | 20 72 61 6e 64 6f 6d 20 |u need a| random |
|00000440| 6e 75 6d 62 65 72 20 69 | 6e 20 74 68 65 20 0a 09 |number i|n the ..|
|00000450| 09 09 09 61 62 6f 76 65 | 20 73 65 74 20 2a 2f 0a |...above| set */.|
|00000460| 0a 20 20 48 6f 77 65 76 | 65 72 2c 20 73 65 65 20 |. Howev|er, see |
|00000470| 74 68 65 20 46 41 51 20 | 66 6f 72 20 70 69 74 66 |the FAQ |for pitf|
|00000480| 61 6c 6c 73 20 61 73 73 | 6f 63 69 61 74 65 64 20 |alls ass|ociated |
|00000490| 77 69 74 68 20 75 73 69 | 6e 67 20 74 68 65 20 25 |with usi|ng the %|
|000004a0| 20 6f 70 65 72 61 74 6f | 72 20 0a 20 6f 6e 20 70 | operato|r . on p|
|000004b0| 73 65 75 64 6f 72 61 6e | 64 6f 6d 20 6e 75 6d 62 |seudoran|dom numb|
|000004c0| 65 72 73 2e 0a 0a 2f 2a | 2a 4a 61 6d 65 73 20 52 |ers.../*|*James R|
|000004d0| 6f 62 69 6e 73 6f 6e 2a | 2a 2a 2a 2a 2a 2a 2a 2a |obinson*|********|
|000004e0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 20 20 |********|****** |
|000004f0| 20 20 20 20 20 20 20 20 | 20 20 0a 20 20 22 41 6e | | . "An|
|00000500| 20 69 6d 70 6f 72 74 61 | 6e 74 20 67 6f 61 6c 20 | importa|nt goal |
|00000510| 6f 66 20 61 6c 6d 6f 73 | 74 20 65 76 65 72 79 20 |of almos|t every |
|00000520| 67 72 61 70 68 69 63 73 | 20 70 72 6f 67 72 61 6d |graphics| program|
|00000530| 20 69 73 20 74 6f 20 64 | 72 61 77 20 70 69 63 74 | is to d|raw pict|
|00000540| 75 72 65 73 20 6f 6e 0a | 20 74 68 65 20 73 63 72 |ures on.| the scr|
|00000550| 65 65 6e 2e 22 20 20 20 | 20 2d 2d 20 4e 65 69 64 |een." | -- Neid|
|00000560| 65 72 2c 20 44 61 76 69 | 73 20 26 20 57 6f 6f 2c |er, Davi|s & Woo,|
|00000570| 20 5f 4f 70 65 6e 47 4c | 5f 50 72 6f 67 72 61 6d | _OpenGL|_Program|
|00000580| 6d 69 6e 67 5f 47 75 69 | 64 65 5f 2c 20 43 68 61 |ming_Gui|de_, Cha|
|00000590| 70 74 65 72 20 31 30 0a | 20 20 20 20 20 20 20 20 |pter 10.| |
|000005a0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000005b0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 2a | | *|
|000005c0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 6a 61 6d 65 |********|****jame|
|000005d0| 73 2d 72 6f 62 69 6e 73 | 6f 6e 40 75 69 6f 77 61 |s-robins|on@uiowa|
|000005e0| 2e 65 64 75 2a 2a 2f 0a | 0a 0a 0a 0a |.edu**/.|.... |
+--------+-------------------------+-------------------------+--------+--------+